package com.project.service.bean;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        List<ClassBean> classList = new ArrayList<>();
        classList.add(new ClassBean(3,"j111"));
        classList.add(new ClassBean(9,"j115"));
                classList.add(new ClassBean(7,"j113"));
         classList.add( new ClassBean(5,"j115"));


        SortUtil.sort(classList, new IComparator<ClassBean>(){
            @Override
            public int compare(ClassBean o1, ClassBean o2) {
                return o2.getName().compareTo(o1.getName());
            }
        });

        System.out.println(classList);
    }
}
